/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'Noto Sans', sans-serif;
  background-color: #f5f5f5;
}

/* 布局样式 */
.layout {
  min-height: 100vh;
}

.content {
  padding: 24px 0;
  background-color: #f5f5f5;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 顶部导航 */
.app-header {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}

.header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo h1 {
  margin: 0;
  font-size: 20px;
  color: #1890ff;
}

.desktop-menu {
  display: flex;
  margin-left: 40px;
}

.search-container {
  margin: 0 20px;
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.user-actions {
  display: flex;
  align-items: center;
}

.auth-buttons {
  display: flex;
  gap: 8px;
}

.mobile-menu-button {
  display: none;
}

.mobile-menu {
  display: none;
}

.cart-badge {
  margin-right: 24px;
}

/* 页脚样式 */
.app-footer {
  background-color: #001529;
  color: rgba(255, 255, 255, 0.65);
  padding: 24px 0;
}

.footer-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
}

.footer-links a:hover {
  color: #1890ff;
}

.footer-links.no-bullet li {
  list-style: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.footer-links-bottom {
  display: flex;
  gap: 24px;
}

.footer-links-bottom a {
  color: rgba(255, 255, 255, 0.65);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .desktop-menu {
    display: none;
  }
  
  .search-container {
    flex-grow: 0;
  }
  
  .mobile-menu-button {
    display: block;
  }
  
  .mobile-menu {
    display: block;
    background-color: #fff;
    padding: 16px;
    border-top: 1px solid #f0f0f0;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
  }
  
  .footer-links-bottom {
    justify-content: center;
  }
}

/* 秒杀活动卡片 */
.seckill-card {
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
}

.seckill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 打折标签 */
.discount-tag {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #ff4d4f;
  color: white;
  padding: 4px 8px;
  font-weight: bold;
  border-radius: 0 0 0 8px;
}

/* 商品详情页 */
.product-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: all 0.3s;
}

.product-thumbnail {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.7;
  transition: all 0.3s;
}

.product-thumbnail:hover,
.product-thumbnail.active {
  border-color: #1890ff;
  opacity: 1;
}

/* 购物车页面 */
.cart-page .ant-list-item {
  padding: 16px 0;
}

/* 订单页面 */
.order-page .ant-list-item {
  padding: 16px 0;
}

/* 通用动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}
